#include "Motion.h"

EFI_GRAPHICS_OUTPUT_PROTOCOL *Gop;
EFI_GRAPHICS_OUTPUT_BLT_PIXEL Grey = {166, 166, 166, 0};

EFI_STATUS VideoInit(
    IN EFI_HANDLE ImageHandle,
    OUT FrameBufferConfig *VideoConfig
)
{
    EFI_STATUS Status = EFI_SUCCESS;

    Status = GetGopHandle(ImageHandle, &Gop);

    Status = SetVideoMode(Gop);

    VideoConfig->frame_buffer= Gop->Mode->FrameBufferBase;
    VideoConfig-> pixel_format= 0;
    VideoConfig-> horizontal_resolution= Gop->Mode->Info->HorizontalResolution;
    VideoConfig->vertical_resolution = Gop->Mode->Info->VerticalResolution;
    VideoConfig->pixels_per_scan_line = Gop->Mode->Info->PixelsPerScanLine;
    
    return Status;
}
